import './preload.js';

import Vue      from 'vue'
import iView    from 'iview';
import Element  from 'element-ui';
import App      from './App';
import router   from './router';
import store    from './store';


import 'iview/dist/styles/iview.css';
import 'element-ui/lib/theme-chalk/index.css';
import './style.styl';

Vue.use(iView);
Vue.use(Element);

Vue.config.productionTip = false;

(async () => {
    new Vue({
        el: '#app',
        router,
        store: await store,
        render: h => h(App),
    });
})();

